﻿using SelfMadeMillionaire.Core.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace SelfMadeMillionaire.Web.Infrastructure.ViewModels.TrackingPortfolio
{
	public class TrackingPortfolioViewModel
	{
		[Required]
		[DisplayName("Tracking Portfolio")]
		//[Range(0, 100, ErrorMessage = "Tracking Portfolio should be from 0 to 100")]
		public double TrackingPortfolio { get; set; }
		[Required]
		[DisplayName("Dow Industrials")]
		//[Range(0, 100, ErrorMessage = "Dow Industrials should be from 0 to 100")]
		public double DowIndustrials { get; set; }
		[Required]
		[DisplayName("S&P 500")]
		//[Range(0, 100, ErrorMessage = "S&P 500 should be from 0 to 100")]
		public double SP500 { get; set; }
		[Required]
		//[Range(0, 100, ErrorMessage = "Nasdaq should be from 0 to 100")]
		public double Nasdaq { get; set; }

        [Required]
        public double TrackingPortfolioReturn { get; set; }
        [Required]
        public double DowIndustrialsReturn { get; set; }
        [Required]
        public double SP500Return { get; set; }
        [Required]
        public double NasdaqReturn { get; set; }

		[Required]
		[DisplayName("From Date")]
		public DateTime FromDate { get; set; }
		[Required]
		[DisplayName("To Date")]
		public DateTime ToDate { get; set; }

		public string Title { get; set; }

		public TrackingPortfolioType TPtype { get; set; }
	}
}
